{extend name="layout"/}

{block name="breadcrumb"}
<h2>{$title}详情</h2>
<ol class="breadcrumb">
    <li><a href="{:url('index/index')}">首页</a></li>
    <li><a href="{$url}">{$title}列表</a></li>
    <li><strong>{$title}详情</strong></li>
</ol>
{/block}

{block name="main"}
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>{$title}详情</h5>
    </div>
    <div class="ibox-content">
        <div class="row margin-bottom-10">
            <div class="col-sm-1">
                用户昵称
            </div>
            <div class="col-sm-6">
                {$model.nickname}
            </div>
        </div>

        <div class="row margin-bottom-10">
            <div class="col-sm-1">
                发表时间
            </div>
            <div class="col-sm-6">
                {$model.create_time}
            </div>
        </div>

        <div class="row margin-bottom-10">
            <div class="col-sm-1">
                {$title}详情
            </div>
            <div class="col-sm-6">
                {$model.content}
            </div>
        </div>

        <div class="row margin-bottom-10">
            <div class="col-sm-1"></div>
            <div class="col-sm-10">
                {if $model}
                {foreach $model.files as $key=> $vo}
                {if $vo.type == 1}
                <a href="{$vo.file}" target="view_window"><img src="{$vo.file}" alt="" width="90" height="90"></a>
                {else/}
                <video src="{$vo.file}" controls="controls" class="my-video">
                    您的浏览器不支持 video 标签。
                </video>
                {/if}
                {/foreach}
                {/if}
            </div>
        </div>

        <div class="hr-line-dashed"></div>

        <form method="post" class="form-horizontal" onsubmit="return toSubmit()">

            <div class="form-group  margin-bottom-10">
                <div class="col-sm-1 padding-top-7">审核状态</div>
                <div class="col-sm-6">
                    {foreach $checkStatus as $k=>$v}
                    <div class="radio radio-info radio-inline">
                        <input type="radio" id="inlineRadio{$k}" value="{$k}" name="check_status"
                               required {$model['check_status'] == $k ? 'checked' : '' }>
                        <label for="inlineRadio{$k}"> {$v} </label>
                    </div>
                    {/foreach}
                </div>
            </div>

            <div class="hr-line-dashed"></div>

            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-2">
                    <input type="hidden" name="id" value="{$model.id}">
                    <button class="btn btn-primary" type="submit">提交</button>
                    <button class="btn btn-white" type="button"><a href="{:url('index')}">取消</a></button>
                </div>
            </div>

        </form>

    </div>
</div>
{/block}